/**
 * 单一状态树
 * vuex 操作顺序：state.js -> mutations-type.js -> mutations.js -> getters.js
 */
import * as types from './mutations-type.js'

export default {
  // 用户id
  user_id: window.localStorage.getItem(types.USER_ID) || '',
  student_id: window.localStorage.getItem(types.STUDENT_ID) || '',
  is_init: false,
  student: window.localStorage.getItem(types.STUDENT) ? JSON.parse(window.localStorage.getItem(types.STUDENT)) : {},
}
